package com.sixbro.shiro.jwt.service.user;

import com.bxs.rbac.shiro.jwt.domain.entity.Authority;
import com.bxs.rbac.shiro.jwt.domain.entity.Role;
import com.bxs.rbac.shiro.jwt.domain.entity.User;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @Author: Mr.Lu
 * @Since: 2020/6/17 17:07
 */
public interface UserService {

    default User findUserByUserId(Long userId) {
        return new User();
    }

    default User findUserByUsername(String username) {
        return new User();
    }

    default List<Role> findRolesByUserId(Long userId) {
        return new ArrayList<Role>();
    }

    default  List<Role> findRolesByUsername(String username) {
        return new ArrayList<Role>();
    }

    default List<Authority> findAuthoritiesByUserId(Long userId) {
        return new ArrayList<Authority>();
    }

    default  List<Authority> findAuthoritiesByUsername(String username) {
        return new ArrayList<Authority>();
    }
}
